Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix fast semantic tokens #470

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Sdk/AzurePipelines/AzureDevops.cs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public static string RelativeTo(string cwd, string filename) {
private static ((int, int)[], Dictionary<(int, int), int>) CreateIdxMapping(TemplateToken token) {
if(token is LiteralToken lit && lit.RawData != null) {
#if HAVE_YAML_DOTNET_FORK
var praw = lit.ToString();
var praw = lit.RawData;

YamlDotNet.Core.Tokens.Scalar found = null;
var scanner = new YamlDotNet.Core.Scanner(new StringReader(praw), true);
Expand Down
4 changes: 2 additions & 2 deletions src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
Expand Down Expand Up @@ -610,7 +610,7 @@
}
if(lit.RawData != null) {
#if HAVE_YAML_DOTNET_FORK
var praw = lit.ToString();
var praw = lit.RawData;

YamlDotNet.Core.Tokens.Scalar found = null;
var scanner = new YamlDotNet.Core.Scanner(new StringReader(praw), true);
Expand Down Expand Up @@ -1186,11 +1186,11 @@
return m_schema.Get<T>(Definition);
}

public Definition? Parent { get; }

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / package

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x86, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x86, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1189 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
public string? ParentName { get; }

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / package

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x86, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x86, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1190 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

private TemplateSchema m_schema;
public string? Name { get; }

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (alpine-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / package

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x86, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / build (win-x86, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 1193 in src/Sdk/DTObjectTemplating/ObjectTemplating/TemplateReader.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
public Definition Definition;
public String[] AllowedContext;
}
Expand Down
Loading