Skip to content

The error Semicolon': expected Colon for the specific code #126

Open
@dadhi

Description

@dadhi

Given the following code:

using System;

static class X
{
    internal static bool TryGetUsedInstance(this IResolverContext r, int serviceTypeHash, Type serviceType, out object instance)
    {
        instance = null;
        return r.CurrentScope? .TryGetUsedInstance(r, serviceTypeHash, serviceType, out instance) == true 
            || r.SingletonScope.TryGetUsedInstance(r, serviceTypeHash, serviceType, out instance);
    }
}

I've got the error:

LeMP macro compiler (2.8.3.0)
Test3.ecs(9,98): Error: 'Semicolon': expected Colon
Test3.ecs(9,98): Error: ';': Expected an expression: (parentheses), {braces}, identifier, literal, or $substitution. 

Btw: I've started to play with running LeMP for the https://github.com/dadhi/DryIoc/blob/v5-dev/src/DryIoc/Container.cs
which is 14k of locs ;-) and for now, I've got only this error and #125 .

My biggest worry was the performance but for now, the LeMP output is almost instantaneous - which is a pleasant surprise! I will test it further when the mentioned problems are fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions